package com.ymatou.iapi.userservice.testcase;

import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
import org.junit.Test;
import org.junit.experimental.categories.Category;

import com.ymatou.iapi.userservice.service.QueryMaxUserIdCall;
import com.ymt.base.BaseBean;
import com.ymt.core.tool.Logger;
import com.ymt.utils.annotation.*;
import com.ymt.utils.tag.*;
/**
*获取公钥
*FreeMaker Template自动生成代码
*/
@TestSuite
public class Ts_QueryMaxUserId{
	private static QueryMaxUserIdCall QueryMaxUserIdCall;
	@BeforeClass
	public static void setUp() {
		Logger.createResultFile("获取公钥");
	}

	@Before
	public void caseUp() {
		QueryMaxUserIdCall=new QueryMaxUserIdCall();
	}

	@AfterClass
	public static void tearDown() {
		Logger.generateResult(QueryMaxUserIdCall.getOpurl());
	}

	@After
	public void caseDown() {
		Logger.end();
	}
	@Test
	@Category({P1.class})
	@TestCase
	public void Tc_QueryMaxUserId_001() {
		Logger.start(true,"获取最大用户id,成功");
		try {
			QueryMaxUserIdCall.callService();		
			Logger.debug(QueryMaxUserIdCall.getStatusCode());
			Logger.verifyNotNull(QueryMaxUserIdCall.getString("Data"), "验证Data");
			Logger.verifyEquals("200", QueryMaxUserIdCall.getString("Code"), "验证Code");
		} catch (Exception e) {
			Logger.fail(e);
		}
	}
}